<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>新闻标签添加页面</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css">
  <link rel="stylesheet" href="../../../style/wangeditor.css">
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加村委会任期':action=='Modify'?'修改村委会任期':''}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'village_organization_tenure', 'form': 'dataForm' ,'primary_key':'Tenure_SerialNumber' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">村委会任期信息</div>
        </div>
        <el-descriptions :column="1" size="large" border>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">省/市/区</div>
            </template>
            <el-cascader @change="changeCity" v-model="cityValue" filterable class="borderless-input"
              :props="{value:'value',label:'label',children:'children'}" placeholder="请选择省市区" :options="city"
              style="width: 100%"></el-cascader>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">乡镇/村庄</div>
            </template>
            <el-cascader :disabled="city1.length == 0" @change="changeCity1" v-model="cityValue1" filterable
              class="borderless-input" :props="{value:'ProvinceNumber',label:'Province',children:'children'}"
              placeholder="请选择乡镇/村庄" :options="city1" style="width: 100%"></el-cascader>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">任期</div>
            </template>
            <el-input ref="personal_information" v-model="dataForm.Tenure" class="borderless-input" placeholder="请输入任期" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">任期开始日期</div>
            </template>
            <el-date-picker v-model="dataForm.Start_Date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
              class="borderless-input" type="date" placeholder="请选择任期开启时间" size="large" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">任期结束日期</div>
            </template>
            <el-date-picker v-model="dataForm.End_Date" format="YYYY-MM-DD" value-format="YYYY-MM-DD"
              class="borderless-input" type="date" placeholder="请选择任期结束日期" size="large" />
          </el-descriptions-item>
        </el-descriptions>
        <!-- <div id="ChildTable">
          <div class="table_titel">
            <div class="titel">委任人员</div>
            <div class="operation">
              <el-button type="primary" size="small" @click="handleAdd('childDataForm')">新增</el-button>
              <el-button type="danger" size="small" @click="handleRemove('childDataForm')">删除</el-button>
            </div>
          </div>
          <el-descriptions
            :data-options="JSON.stringify({ 'TableName': 'village_tenure_position', 'form': 'childDataForm', 'ParentTableName': 'village_organization_tenure'})"
            :column="2" size="large" border v-for="(item,index) in childDataForm.filter(item => item.Row_Status != '1')"
            :key="index">
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">委任人</div>
              </template>
              <el-select clearable v-model.trim="item.ID_Card_Number" placeholder="请选择负责人" filterable style="width: 100%">
                <el-option v-for="(item,index) in personal" :key="index" :label="item.Personal_Name"
                  :value="item.ID_Card_Number"></el-option>
              </el-select>
            </el-descriptions-item>
            <el-descriptions-item>
              <template #label>
                <div class="cell-item">村委职务</div>
              </template>
              <el-input ref="personal_information" v-model="item.Village_Position" class="borderless-input"
                placeholder="请输入村委职务" />
            </el-descriptions-item>
          </el-descriptions>
        </div> -->
      </div>
    </div>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" plain @click="handleSubmit" :loading="loading">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../../utils/utils.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/add.js"></script>

</html>